#include "usejavafunction.h"

UseJavaFunction::UseJavaFunction(QObject *parent) : QObject(parent)
{

}

void UseJavaFunction::useJavaFacerecognize(QString Camerapath)
{
    QAndroidJniObject j_cameraPath=QAndroidJniObject::fromString(Camerapath);
    QAndroidJniObject j_savePath=QAndroidJniObject::callStaticObjectMethod("org/li/facerecognize/Facerecognition","recognizeFace","(Ljava/lang/String;)Ljava/lang/String;",j_cameraPath.object());
    emit javaFaceRecognizeOver( j_savePath.toString());
}
